<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>比较运算符</title>
</head>
<body>
<script>
  console.log(10 > 20);
  console.log(10 < 20);
  console.log(10 == '10');
  //全等于(数据类型也要相等)
  console.log(10 === '10');
  console.log(10 != '10');
  //不全等比较
  console.log(10 !== '10');
  console.log(10 && 20);
  console.log(0 || null);
  console.log(!0);

  //自增 或者 自减
  var n1 = 10;
  console.log(++n1);
  console.log(--n1);
  console.log(n1++);
  console.log(n1--);

</script>
</body>
</html>